<? $this->headTitle($this->translate('Sign in')) ?>
<div>
    <h1><?= $this->translate('Sign in') ?></h1>
    <? if (count($this->flashMessenger())) : ?>
    <div class="messages">
        <?= $this->htmlList($this->flashMessenger()->getMessages()); ?>
    </div>
    <? endif; ?>
    <p>
        <?= $this->loginForm ?>
    </p>
    <script type="text/javascript">
        // <![CDATA[
        (function() {
            var u = document.getElementById('username');
            var p = document.getElementById('password');
            
            if (u.value != '') {
                p.focus();
            } else {
                u.focus();
            }
        })();
        // ]]>
    </script>
    <div class="help-note-left">
        <div class="help-note-content">
            <h4><?= $this->translate('Need help signing in?'); ?></h4>
            <ul>
                <li><a href="<?= $this->url(array('action' => 'forgot', 'controller' => 'login', 'module' => 'user'), 'default', true) ?>"><?= $this->translate('Did you forget your password?'); ?></a></li>
                <li><a href="<?= $this->url(array('action' => 'help', 'controller' => 'login', 'module' => 'user'), 'default', true) ?>"><?= $this->translate('Problems signing in?'); ?></a></li>
            </ul>
        </div>
    </div>
</div>